#include "Pesticide.h"
#include <iostream>

using namespace std;

void Pesticide::addBdosage(int bdosage_num)
{
    this->_bdosage_count = bdosage_num;
    cout << "Pesticide filling completed" << endl;
}

bool Pesticide::spray()
{
    if (this->_bdosage_count <= 0)
    {
        cout << "The dosage has been exhausted!" << endl;
        return false;
    }

    this->_bdosage_count -= 1;
    cout << "Successful spraying!" << endl;
    return true;
}